package cn.wolfcode.luowowo.acticle.service;

import cn.wolfcode.luowowo.acticle.domain.FlightScheduled;
import cn.wolfcode.luowowo.acticle.query.FlightScheduledQuery;
import cn.wolfcode.luowowo.common.exception.LogicException;
import com.github.pagehelper.PageInfo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IFlightScheduledService {
    /**
     * 通过条件查询航班信息
     * @param qo
     * @return
     */
    List<FlightScheduled> listFlightScheduledForSearch(FlightScheduledQuery qo) throws LogicException;

    /**
     * 通过条件进行分页查询
     * @param qo
     * @return
     */
    PageInfo query(FlightScheduledQuery qo) throws LogicException;

    /**
     * 通过航班id获取航班订单
     * @param pid
     * @return
     */
    FlightScheduled getTicket(Long pid);
}
